Skip to content

Conversation

@abbesBenayache
Copy link
Contributor

@abbesBenayache abbesBenayache commented Oct 21, 2025

Add support for bulk processing

App output result.json changes

// single protectedData
{
  "success": boolean,
  "error"?: string,
  "protectedData"?: address
}
// protectedData bulk
{
  "success": boolean, // global success (no fail)
  "error"?: "Partial failure",
  "totalCount"?: number,
  "successCount"?: number,
  "errorCount"?: number,
  "results"?: {
    "index": number,
    "protectedData"?: address,
    "success": boolean,
    "error"?: string
  }[]
}

Tests:

BREAKING CHANGE: result file renamed to result.json; single protectedData result file now contains {"success": <boolean>, "protectedData"?: <address>, "error"?: <string> }; upon error, the iapp will now exit 0 and output "success": false and "error": <string> rather than falling the task.

@PierreJeanjacquot PierreJeanjacquot changed the title Feature/iapp support bulk processing feat(iapp): support bulk processing Nov 10, 2025
abbesBenayache and others added 12 commits November 10, 2025 15:10
- Change 'total-processed' to 'total-count' in bulk result
- Change 'dataset-results' to 'results' in bulk result
- Remove status field from bulk result object
- Update tests to match new structure
- Change output file extension from .txt to .json for better semantic accuracy
- Rename 'dataset' field to 'protected-data' in bulk processing results
- Improve error messages with 'Cause:' prefix and use 'protected-data' terminology
- Update all tests to match new structure and file extensions
- App always create result files
- upon success `result.json` contains `"success": true` (rather than `"status": 200`)
- upon failure `result.json` contains `"success": false` and the error message in `"error"` (rather than `"status": 4xx | 5xx`)
@PierreJeanjacquot PierreJeanjacquot force-pushed the feature/iapp-support-bulk-processing branch from d23d97f to c2ce92d Compare November 10, 2025 14:11
@PierreJeanjacquot PierreJeanjacquot changed the title feat(iapp): support bulk processing feat(iapp)!: support bulk processing Nov 10, 2025
@PierreJeanjacquot PierreJeanjacquot merged commit 15d0936 into main Nov 10, 2025
3 checks passed
@PierreJeanjacquot PierreJeanjacquot deleted the feature/iapp-support-bulk-processing branch November 10, 2025 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants